using System;
using AmazeUI.Imodel;

namespace AmazeUI.db
{
    public partial class Goods
    {
        public Goods(IGoods model)
        {
            Set(model);
            this.IsEn = true;
            this.UpTime = DateTime.Now;
        }

          void Set(IGoods model)
        {
            this.Body = model.Body;
            this.BodyContent = model.BodyContent;
            this.BodyContentmin = model.BodyContentmin;
            this.Imgurl = model.Imgurl; 
            this.EnTime = model.EnTime;
            this.EndTime = model.EndTime;
            this.GoodsClassId = model.GoodsClassId;
            this.Num = model.Num;
            this.Praise = model.Praise;
            this.Price = model.Price;
            this.Remarks = model.Remarks;
            this.NoClass = model.NoClass;
        }
    }
}